package com.yuanzi.base.constants;

public interface AuthConstants {
	
	public static String AUTH_SERVICE_NAME = "zuul-service";
	
	/* api校验相关实体名*/
	String API_AUTH_ENTITY_SCHOOL = "school";
	String API_AUTH_ENTITY_COURSE = "course";
	String API_AUTH_ENTITY_TEACHCLASS = "teachClass";
	
	/* 用户权限类型*/
	String ROLE_NONE = "0";
	String ROLE_TEACHER = "1";
	String ROLE_STUDENT = "2";
	String ROLE_SCHOOL_ADMIN = "3";
	String ROLE_ADMIN = "6";
	
	/* 新增课程类型*/
	String NEW_COURSE = "SELF_COURSE";
	String COPY_COURSE = "COPY_COURSE";
	
	/* 机构类型*/
	String ORG_TYPE_SCHOOL = "SCHOOL";
	String ORG_TYPE_STUDIO = "STUDIO";

	/* 接口的操作类型*/
	String ENTITY_OPERATE_TYPE_CREATE = "1";
	String ENTITY_OPERATE_TYPE_EDIT = "2";
	String ENTITY_OPERATE_TYPE_DELETE = "3";
	String ENTITY_OPERATE_TYPE_READ = "4";
	String ENTITY_OPERATE_TYPE_PUBLISH = "5";
	
	/* 课程的操作类型 1:参与编辑，2:学校授权。3:创建者*/
	String COURSE_RIGHT_EDIT = "1";
	String COURSE_RIGHT_SCHOOL = "2";
	String COURSE_RIGHT_CREATOR = "3";
	String COURSE_RIGHT_NONE = "NONE";
	
	/* 教学班的操作类型*/
	//主讲教师
	String TEACHCLASS_RIGHT_LECTURE = "1";
	//助教
	String TEACHCLASS_RIGHT_HELPER = "2";
	//创建人
	String TEACHCLASS_RIGHT_CREATOR = "3";
	//学生
	String TEACHCLASS_RIGHT_STUDENT = "4";
	//默认值（没有权限）
	String TEACHCLASS_RIGHT_NONE = "NONE";
	
	/* 案例的操作类型：1 本校教师;2 创建者*/
	String CASE_RIGHT_TEACHER = "1";
	String CASE_RIGHT_CREATOR = "2";

	/* redis名*/
	String REDIS_TEACHCLASS_TEACHER = "teachclass_teacher:";
	String REDIS_STUDENT_CLASS = "student_class";
	String REDIS_TEACHECLASS_CLASS = "teachclass_class:";
	String REDIS_COURSE_RIGHT = "course_right:";
	String REDIS_USER_ROLE = "login_user_role:";
	String REDIS_TEACHCLASS_STUDENT = "teachclass_student:";
	String REDIS_AUTH_FLAG = "auth_flag:";
	String REDIS_AUTH_CASE = "memeber_case:";
	String REDIS_MEMBER_TEACHCLASS = "member_teachclass:";
	String REDIS_MEMBER_COURSE = "member_course:";
	String REDIS_CASE_RIGHT = "case_right:";
	String REDIS_SCHOOL_SERVICES = "school_services:";
	
	/* 接口校验提示的模式*/
	String API_AUTH_MSG_MOTION = "debug";
	String FILTER_SUCCESS_KEY = "isSuccess";
	
	/* 权限是否有修改 */
	String AUTH_IS_ALTERED = "1";
	String AUTH_NO_ALTERED = "0";
	
	/* authFlagType */
	String AUTH_FLAG_COURSE = "course";
	String AUTH_FLAG_TEACHCLASS = "teach_class";
	String AUTH_FLAG_SCHOOL = "school";
}